package com.consumer.serviceimpl; /**
 * @author: yihanyuan
 * @Description：
 * @Date: 2018/11/29 15:25
 */

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.bean.User;
import com.dubbo.service.OrderService;
import com.dubbo.service.UserService;
import org.springframework.stereotype.Component;

/**
 * @program: newdubbo
 * @description:
 * @author: yihanyuan
 * @create: 2018-11-29 15:25
 **/
@Service
@Component
public class OrderServiceImpl implements OrderService {
    @Reference
    UserService userService;

    @Override
    public User getUser() {
        return userService.getUser();
    }
}
